﻿
using System.Text;
using Zinnia.Common;

namespace Zinnia.Kernel.Inject.Config
{
    /// <summary>
    /// 依赖注入配置管理器
    /// </summary>
    public class DependencyInjectRegisterConfigManager
    {
        public static DependencyInjectRegisterConfigContainer GetDependencyInjectRegisterConfigContainer()
        {
            var dependencyInjectContent = FileHelper.ReadFileText("/configs/DependencyInject.config", Encoding.UTF8);
            return SerializerHelper<DependencyInjectRegisterConfigContainer>.XmlDeserialize(dependencyInjectContent);
        }
    }
}
